
#include <ComboFormat.h>
#include <OrderedUnits.h>
#include <UnitsVisitorImpl.h>

#include <algorithm>

using namespace std;

ComboFormat::ComboFormat( )
{
}

const ComboFormat* ComboFormat::getComboFormat()
{
	static ComboFormat comboFormat;
	return &comboFormat;
}

void ComboFormat::print( ostream& os, unsigned int ammountInBaseUnit ) const
{
	UnitsVisitorImpl unitsVisitor(os, ammountInBaseUnit);

	ORDERED_UNITS->accept( &unitsVisitor );	
}

